var e = require("../../api.js"),
  t = getApp();

Page({
  data: {
    page: 1,
    show_qrcode: !1,
    status: 1,
    list: []
  },
  go_coupon_detail(e){
    wx.navigateTo({
      url: '../coupon_detail/coupon_detail?id='+e.currentTarget.dataset.goods_id,
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },
  onLoad: function(options) {
    var _this = this;
    t.request({
      url: e.user.volume_goods,
      success: function(res) {
        console.log(res.data)
        if (res.code == 0) {
          _this.setData({
            list: res.data
          })
        } 

      }
    })
  },
  onReady: function() {},
  onShow: function() {},
  onHide: function() {},
  onUnload: function() {},
  onPullDownRefresh: function() {},
  onReachBottom: function() {

  }
});